import { createRouter, createWebHistory } from 'vue-router'

import IndexView from '@/views/index/index.vue'
import ConsumeView from '@/views/consume/index.vue'
import ReportView from '@/views/report/index.vue'
import LayoutView from '@/views/layout/index.vue'
import HeatmapView from '@/views/heatmap/index.vue'
import BehaviorView from '@/views/behavior/index.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  
  routes: [
    {
      path: '/',
      name: 'layout',
      component: LayoutView,
      redirect: '/index',
      children: [
        {path: 'index',name: 'index',component: IndexView},
        {path: 'consume',name: 'consume',component: ConsumeView},
        {path: 'report',name: 'report',component: ReportView},
        {path: 'heatmap',name: 'heatmap',component: HeatmapView},
        {path: 'behavior',name: 'behavior',component: BehaviorView}
      ]
    },
  ]
})

export default router
